package com.winglish.as3.exam.opic.vo 
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.display.SimpleButton;
	
	import com.winglish.as3.utils.ObjectUtil;
	/**
	 * ...
	 * @author charmjin
	 */
	public class OpicAnswerVo extends MovieClip
	{
		protected var qusPlayMc:MovieClip;			//질문 play
		protected var qusStopBtn:SimpleButton;		//질문 stop
		protected var myPlayMc:MovieClip;			//나의 답변 play
		protected var myStopBtn:SimpleButton;		//나의 답변 stop
		protected var reRecMc:MovieClip;				//답변 재녹음 rec
		protected var reRecStopBtn:SimpleButton;		//답변 재녹음 recStop
		protected var rePlayMc:MovieClip;			//답변 재녹음 play
		protected var reStopBtn:SimpleButton;		//답변 재녹음 stop
		protected var ansPlayMc:MovieClip;			//모범 답변 play
		protected var ansStopBtn:SimpleButton;		//모범 답변 stop
		
		protected var qusScrollBar:MovieClip;
		private var content:MovieClip;
		protected var engTxt:TextField;
		protected var korTxt:TextField;
		
		
		protected var ansScrollBar:MovieClip;
		
		public function OpicAnswerVo() 
		{
			qusPlayMc = myPlayMc = reRecMc = rePlayMc = ansPlayMc = null;
			qusStopBtn = myStopBtn = reRecStopBtn = reStopBtn = ansStopBtn = null;
			qusScrollBar = ansScrollBar = null;
		}
		
		/**
		 * 버튼 매핑.
		 * @param	path
		 */
		protected function mapping(path:MovieClip):void {
			var arr:Array = new Array();
			arr = ObjectUtil.traceDisplayList(path);
			for each (var i:String in arr) 
			{
				try {
					if (i.indexOf("Mc") != -1 ) {
						this[i] = new MovieClip();
						
					}else if (i.indexOf("Btn") != -1 ) {
						this[i] = new SimpleButton();
					}
					this[i] = path[i];
				}catch (e:Error) {
					//trace(i + " not find MovieClip" );
				}
			}
		}
		
	}

}